local yifa = fk.CreateSkill{
    name = "va_heg__yifa",
    tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
    ["va_heg__yifa"] = "仪法",
    [":va_heg__yifa"] = "锁定技，当你成为触发应变效果的黑色牌的目标时，取消之。",

    ["$va_heg__yifa1"] = "仪法不明，则实不称名。",
    ["$va_heg__yifa2"] = "仪法明晰，则长治久安。",
}

yifa:addEffect(fk.TargetConfirming,{
    anim_type = "defensive",
    can_trigger = function (self, event, target, player, data)
        return target == player and player:hasSkill(yifa.name) and data.card.color == Card.Black and data.extra_data
        and data.extra_data.heg_trigger == true
    end,
    on_use = function (self, event, target, player, data)
        data:cancelTarget(player)
    end,

})

return yifa